package com.zy.ioc.pro5_ioc_import;

import com.zy.ioc.pro5_ioc_import.other.Apple;
import com.zy.ioc.pro5_ioc_import.other.Banana;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @program: mavenTest153
 * @description:
 * @author: zy
 * @create: 2025-07-13 08:52
 */
@Configuration
@Import(value={FruitImportSelector.class, Apple.class})  // import->importSelector.selectImports()->String[]->@Bean->容器中
public class AppConfig_2 {

    @Bean
    public Banana b(){
        return new Banana();
    }
}
